package uy.com.antel.source.bean;

import javax.faces.context.FacesContext;



public class IndexBean {

	
	public String addRevista(){
				
		FacesContext fc=FacesContext.getCurrentInstance();
		try{
			RevistaBean bean=(RevistaBean)fc.getELContext().getELResolver().getValue(fc.getELContext(),null,"revistaBean");
			bean.cargarCombo();
		}catch(NullPointerException e){
			e.printStackTrace();
		}
		return ("revista");
	 }
	
	public String addPublicacion(){
		FacesContext fc=FacesContext.getCurrentInstance();
		try{
			PublicacionesBean bean=(PublicacionesBean)fc.getELContext().getELResolver().getValue(fc.getELContext(),null,"publicacionesBean");
			bean.cargodataTable();
		}catch(NullPointerException e){
			e.printStackTrace();
		}
		return ("publicacion");
	 }
	}
	
	

